<script setup>
import { RouterLink, RouterView } from 'vue-router';
import Header from '../components/Header.vue';
import SilderVue from '../components/Silder.vue';
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header class="header">
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside class="aside">
          <SilderVue></SilderVue>
        </el-aside>
        <el-main class="main">
          <RouterLink to="/index"></RouterLink>
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>
  </div>

</template>

<style scoped>
.header{
  padding: 0;
  height: 100px;
}
.aside{
  width:"150px";
  height: calc(100vh - 100px);
}
.main{
  width: calc(100% - 150px);
  height: calc(100vh - 100px);
}
</style>
